Skip to content

Conversation

@mrksbnc
Copy link
Collaborator

@mrksbnc mrksbnc commented Jan 1, 2026

Pull request overview

This PR adds support for unknown word reporting options to the cspell ESLint plugin, allowing users to control which types of spelling issues are reported (all unknown words, simple typos, common typos, or only flagged words).

Changes:

  • Added a new report option to the ESLint plugin configuration with values: 'all', 'simple', 'typos', and 'flagged'
  • Implemented mapping from the report option to CSpell's unknownWords setting
  • Added unit tests for the new report filtering functionality

This PR contains the changes required to resolve cspell ESLint plugin: support typos-only reporting (CLI --report typos / unknownWords report-common-typos) #8261

@mrksbnc mrksbnc self-assigned this Jan 1, 2026
@github-actions github-actions bot added the fix label Jan 1, 2026
@mrksbnc mrksbnc requested a review from Jason3S January 1, 2026 16:00
@Jason3S Jason3S changed the title refactor: unknown word report config change #8261 fix: unknown word report config change #8261 Jan 2, 2026
@Jason3S
Copy link
Collaborator

Jason3S commented Jan 4, 2026

@mrksbnc,

Need any more help?

Copy link
Collaborator

@Jason3S Jason3S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just need to add some tests:

We will need a fixture:
issue-8261

It can be added to test/index.test.mts. See issue-4870 as an example.

@mrksbnc mrksbnc added the task A task to be done. label Jan 4, 2026
Copy link
Collaborator

@Jason3S Jason3S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@mrksbnc mrksbnc marked this pull request as ready for review January 8, 2026 19:05
@mrksbnc mrksbnc requested a review from Jason3S January 8, 2026 19:07
Copy link
Collaborator

@Jason3S Jason3S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the update.

Did you forget to add the fixtures and the eslint tests?

It would look like this: in src/test/index.test.mts

        readFix('issue-4870/sample.js', {
            cspell: {
                dictionaries: ['business-terms'],
                dictionaryDefinitions: [
                    {
                        name: 'business-terms',
                        path: fixtureRelativeToCwd('issue-4870/dictionaries/business-terminology.txt'),
                    },
                ],
            },
        }),

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

Performance Report

Daily Performance
xychart-beta
    title Files Per Second by Day
    y-axis Files per Second
    x-axis Date [Dec-13, Dec-14, Dec-15, Dec-16, Dec-20, Dec-22, Dec-23, Dec-24, Dec-27, Dec-28, Dec-29, Dec-30, Jan-1, Jan-4, Jan-5, Jan-6, Jan-7, Jan-8, Jan-9, Jan-10]
    bar [162.46, 160.30, 159.32, 159.99, 160.32, 171.41, 173.30, 173.54, 170.88, 173.10, 172.87, 170.63, 172.55, 170.72, 165.99, 165.55, 169.22, 174.07, 185.19, 184.26]
    line [126.25, 125.99, 122.54, 125.77, 120.95, 129.07, 131.35, 128.71, 129.73, 130.21, 126.25, 125.32, 128.46, 125.36, 119.96, 121.55, 126.54, 132.92, 138.94, 138.14]
    line [94.05, 97.42, 87.40, 93.20, 92.02, 98.77, 95.06, 94.41, 95.55, 97.07, 96.22, 92.57, 92.92, 91.62, 91.70, 90.24, 93.64, 97.75, 101.99, 101.62]
    line [5.69, 6.12, 5.85, 6.27, 5.94, 6.19, 6.23, 6.06, 5.80, 6.19, 6.04, 6.09, 6.29, 6.13, 5.79, 5.41, 5.66, 6.15, 6.86, 7.06]
    line [201.42, 192.31, 202.71, 196.90, 201.49, 199.06, 199.67, 194.62, 190.28, 203.79, 203.98, 206.16, 191.99, 203.06, 195.28, 197.18, 199.76, 210.90, 223.95, 230.32]
    line [296.25, 298.40, 299.27, 280.90, 293.45, 278.89, 296.00, 294.23, 289.77, 295.71, 297.33, 290.64, 293.31, 297.11, 291.75, 279.45, 292.30, 315.14, 325.37, 332.92]
    line [164.74, 167.10, 169.90, 168.25, 171.20, 165.98, 169.49, 175.43, 173.51, 166.13, 173.69, 176.28, 174.86, 172.30, 168.35, 166.48, 160.20, 176.21, 192.32, 188.11]
    line [14.25, 14.42, 14.66, 14.20, 14.14, 14.58, 14.66, 13.81, 14.51, 13.39, 13.58, 14.12, 14.33, 14.46, 13.75, 12.60, 13.58, 14.59, 15.66, 15.23]
    line [144.49, 139.02, 141.78, 142.36, 140.50, 151.95, 150.33, 152.02, 150.72, 154.90, 153.82, 147.24, 149.99, 145.79, 146.47, 145.32, 149.61, 152.47, 167.66, 170.58]
    line [36.47, 38.38, 37.81, 37.32, 38.13, 39.99, 39.24, 39.22, 39.13, 37.99, 37.43, 37.30, 38.53, 37.44, 35.32, 32.27, 37.29, 39.53, 40.03, 38.52]
    line [242.80, 219.56, 233.62, 231.32, 236.32, 236.26, 240.94, 253.96, 249.85, 237.45, 249.30, 236.26, 250.59, 240.41, 245.35, 243.40, 249.06, 252.82, 269.41, 259.48]
    line [45.02, 45.75, 43.43, 44.94, 44.85, 45.35, 43.98, 45.75, 48.03, 44.47, 43.53, 43.39, 44.67, 43.92, 40.38, 37.83, 41.50, 45.72, 48.43, 48.26]
    line [70.10, 71.99, 68.96, 71.11, 72.00, 74.62, 76.21, 75.66, 76.28, 80.16, 75.45, 77.29, 76.83, 75.96, 77.04, 75.98, 75.37, 79.34, 80.97, 78.86]
    line [65.11, 62.93, 65.98, 63.02, 64.70, 64.39, 64.92, 64.92, 65.76, 63.97, 65.18, 60.36, 63.48, 65.17, 62.63, 59.94, 62.94, 68.03, 71.19, 67.22]
    line [24.27, 23.97, 21.89, 24.77, 24.75, 25.98, 24.78, 24.02, 24.07, 23.90, 24.05, 23.79, 23.47, 23.84, 21.71, 20.06, 22.54, 25.57, 25.37, 25.44]
    line [306.54, 308.67, 318.29, 308.47, 312.68, 311.01, 311.87, 322.19, 317.56, 317.24, 315.38, 325.99, 315.10, 321.37, 318.36, 304.42, 303.41, 319.39, 327.56, 338.44]
    line [99.56, 95.79, 93.99, 95.03, 91.66, 95.50, 94.32, 94.29, 94.73, 94.34, 95.29, 95.11, 98.41, 97.41, 93.11, 86.98, 96.48, 99.80, 107.59, 106.58]
    line [110.81, 107.51, 105.11, 109.29, 110.23, 118.20, 116.66, 113.51, 116.56, 110.18, 116.43, 113.57, 116.81, 116.74, 114.96, 116.34, 117.08, 121.26, 127.78, 121.92]
    line [169.99, 161.97, 169.28, 168.79, 164.45, 163.90, 173.08, 173.52, 171.67, 165.07, 170.82, 168.89, 168.46, 160.87, 163.97, 157.39, 159.96, 176.03, 182.37, 180.57]
    line [32.08, 31.89, 31.67, 31.01, 31.00, 31.79, 31.95, 32.72, 33.00, 31.56, 31.04, 31.19, 31.58, 30.98, 28.44, 27.47, 29.34, 33.19, 34.45, 35.23]
    line [70.99, 69.49, 68.20, 68.29, 71.18, 72.28, 72.81, 72.16, 72.22, 72.29, 71.63, 70.43, 69.31, 70.55, 65.48, 65.68, 67.02, 74.90, 75.80, 79.60]
    line [122.50, 124.97, 121.63, 124.44, 114.40, 117.66, 113.42, 116.57, 120.86, 116.04, 115.61, 111.25, 114.64, 107.26, 104.85, 102.99, 109.30, 116.77, 127.71, 131.79]
    line [230.85, 236.16, 237.46, 237.06, 237.81, 238.36, 240.26, 242.42, 235.97, 234.05, 235.94, 244.60, 237.90, 238.37, 234.19, 223.75, 225.18, 243.31, 257.18, 260.53]
    line [199.02, 199.50, 195.58, 198.56, 202.04, 205.76, 202.04, 203.32, 201.04, 202.44, 203.10, 195.80, 206.74, 207.91, 185.17, 183.38, 197.81, 213.96, 231.09, 234.63]
    line [22.48, 22.26, 24.16, 21.86, 22.99, 23.86, 22.95, 22.15, 22.59, 22.93, 22.71, 21.96, 22.43, 22.76, 19.93, 19.65, 21.35, 23.88, 24.29, 24.52]
    line [182.93, 185.74, 173.94, 185.68, 184.19, 188.28, 188.11, 196.54, 189.53, 183.55, 193.13, 194.30, 182.73, 194.72, 192.90, 184.51, 177.92, 195.10, 212.88, 203.93]
    line [206.57, 216.35, 210.81, 207.51, 213.81, 235.09, 232.12, 236.13, 235.71, 228.72, 232.65, 236.79, 238.66, 239.84, 237.65, 227.69, 241.17, 242.31, 251.84, 250.43]
    line [84.32, 82.91, 77.95, 81.87, 81.89, 89.30, 90.84, 89.17, 86.07, 86.04, 90.94, 91.20, 88.38, 89.72, 82.57, 85.29, 87.34, 86.74, 95.27, 94.79]
    line [129.94, 136.83, 140.59, 128.00, 132.13, 140.04, 140.36, 136.98, 135.57, 135.50, 134.25, 129.01, 139.25, 139.78, 129.55, 131.60, 134.11, 136.19, 147.37, 144.45]
    line [31.34, 29.78, 30.86, 29.89, 30.20, 33.22, 32.90, 33.40, 32.96, 33.38, 32.90, 31.64, 32.05, 31.87, 30.32, 30.13, 30.52, 32.45, 34.68, 36.04]
    line [142.44, 148.72, 148.74, 148.66, 145.81, 145.83, 151.65, 150.82, 149.41, 147.54, 148.32, 148.24, 148.81, 152.12, 144.06, 141.46, 148.01, 153.69, 163.45, 162.80]
    line [116.61, 109.61, 115.93, 113.66, 115.36, 122.68, 121.26, 119.81, 119.36, 122.21, 121.33, 118.71, 119.46, 120.59, 115.93, 111.61, 116.47, 122.24, 129.36, 126.10]
    line [205.14, 200.36, 207.64, 202.85, 200.31, 210.29, 210.04, 207.76, 200.78, 205.77, 199.55, 199.57, 206.34, 210.39, 198.78, 192.42, 197.28, 209.87, 213.91, 213.41]
    line [180.77, 185.77, 186.35, 184.33, 182.33, 191.53, 189.75, 189.98, 177.07, 192.83, 190.79, 182.79, 190.84, 188.67, 194.33, 177.58, 179.97, 187.56, 204.85, 190.88]
    line [50.78, 49.91, 50.66, 50.34, 50.02, 51.61, 51.21, 51.38, 49.64, 48.60, 49.52, 48.09, 50.03, 48.82, 46.25, 44.36, 47.22, 53.09, 55.75, 52.88]
    line [149.26, 148.44, 146.25, 144.57, 148.51, 160.26, 155.20, 157.30, 154.76, 157.76, 156.45, 156.97, 156.48, 161.27, 156.23, 155.16, 163.04, 163.18, 170.50, 175.18]
    line [73.95, 75.07, 76.77, 72.26, 69.84, 77.03, 74.27, 74.27, 73.83, 75.96, 75.41, 73.52, 70.94, 72.13, 67.68, 66.21, 71.65, 76.02, 80.93, 81.76]
    line [232.83, 233.41, 237.39, 235.87, 236.73, 241.85, 239.59, 240.67, 245.15, 245.04, 246.20, 235.52, 245.54, 241.43, 227.89, 226.93, 235.13, 241.29, 256.22, 235.61]
    line [162.41, 162.92, 155.61, 157.24, 162.25, 174.81, 169.46, 179.44, 172.82, 176.92, 167.34, 176.43, 176.94, 178.99, 168.22, 166.87, 176.13, 175.56, 186.67, 190.34]
    line [76.57, 75.62, 71.86, 75.70, 72.52, 79.52, 79.75, 79.57, 78.19, 78.53, 81.17, 72.47, 80.44, 78.06, 78.74, 77.69, 75.81, 82.18, 88.38, 84.71]
    line [113.85, 113.19, 111.86, 113.23, 116.22, 119.95, 116.76, 117.75, 118.71, 118.58, 117.32, 112.42, 116.77, 113.28, 107.29, 110.98, 110.70, 119.74, 122.80, 127.78]
    line [18.41, 18.71, 17.35, 18.44, 18.66, 19.39, 19.24, 18.95, 18.61, 19.20, 19.16, 18.64, 18.56, 18.69, 15.82, 15.37, 16.82, 19.06, 19.36, 20.22]
    line [359.05, 350.76, 385.22, 356.23, 361.41, 363.52, 371.74, 360.07, 349.58, 358.00, 357.09, 358.22, 365.46, 375.72, 366.42, 366.13, 364.89, 378.25, 407.03, 407.69]
    line [46.00, 48.05, 47.07, 45.85, 42.75, 47.52, 47.21, 45.81, 45.88, 45.34, 46.09, 44.04, 43.96, 44.61, 40.41, 39.77, 41.67, 47.14, 50.43, 50.48]
    line [200.18, 192.55, 195.85, 196.96, 197.31, 203.68, 215.88, 203.82, 209.47, 208.55, 206.80, 208.32, 210.94, 208.87, 204.66, 200.55, 205.66, 217.93, 227.16, 233.61]
    line [329.78, 336.28, 339.96, 335.03, 330.81, 346.52, 335.23, 343.48, 342.97, 326.49, 346.96, 341.41, 349.59, 332.44, 321.99, 323.13, 336.38, 352.94, 374.70, 364.14]
    line [114.58, 111.22, 109.33, 106.79, 113.91, 116.30, 113.89, 119.27, 121.25, 119.32, 118.60, 119.88, 120.18, 120.91, 116.77, 113.59, 115.36, 119.01, 126.14, 128.23]
    line [192.23, 185.43, 191.26, 188.26, 189.10, 196.56, 199.42, 199.83, 198.90, 201.82, 194.83, 201.20, 199.08, 201.68, 196.07, 191.44, 191.98, 208.77, 213.46, 216.48]
    line [212.61, 210.51, 204.56, 210.18, 211.34, 200.66, 223.22, 223.16, 220.54, 207.84, 221.69, 222.09, 227.69, 222.11, 226.42, 218.19, 221.48, 227.88, 240.46, 249.36]
    line [160.91, 157.90, 164.74, 161.04, 164.69, 164.20, 175.57, 172.74, 173.87, 177.24, 172.99, 166.08, 180.17, 181.21, 173.75, 179.71, 177.60, 181.52, 194.07, 194.16]
    line [146.06, 142.91, 137.61, 141.27, 139.39, 164.22, 164.25, 165.65, 160.55, 167.52, 164.35, 162.61, 160.21, 152.67, 150.17, 151.88, 156.83, 157.18, 166.03, 164.61]
Loading
Time to Process Files
Repository Elapsed Min/Avg/Max SD SD Graph
AdaDoom3/AdaDoom3 2.86 2.9 / 3.2 / 3.6 0.17 ●━━┻━━╋━━┻━━┫
alexiosc/megistos 7.13 7.0 / 8.0 / 9.9 0.52 ┣●━┻━━╋━━┻━━┫
apollographql/apollo-server 2.49 2.4 / 2.7 / 3.1 0.13 ┣●┻━━╋━━┻━┫
aspnetboilerplate/aspnetboilerplate 9.13 8.8 / 9.9 / 12.5 0.64 ┣━●┻━━╋━━┻━━┫
aws-amplify/docs 11.53 11.8 / 13.1 / 15.9 0.66 ●┣━━┻━━╋━━┻━━┫
Azure/azure-rest-api-specs 9.36 9.1 / 10.3 / 11.7 0.50 ●━━┻━━╋━━┻━━┫
bitjson/typescript-starter 0.99 1.0 / 1.1 / 1.4 0.10 ┣━●━━╋━━┻━┫
caddyserver/caddy 3.42 3.2 / 3.7 / 4.3 0.21 ┣━●┻━━╋━━┻━━┫
canada-ca/open-source-logiciel-libre 0.99 1.0 / 1.2 / 1.4 0.08 ●┣━┻━━╋━━┻━┫
chef/chef 5.19 5.2 / 6.0 / 6.8 0.32 ●┣━━┻━━╋━━┻━━┫
dart-lang/sdk 56.14 55.4 / 62.8 / 70.9 3.61 ┣●━━┻━━━╋━━━┻━━━┫
django/django 14.18 13.4 / 15.2 / 17.0 0.78 ┣━●┻━━╋━━┻━━┫
eslint/eslint 9.52 9.4 / 10.5 / 11.3 0.44 ●┣━━┻━━╋━━┻━━┫
exonum/exonum 3.29 3.3 / 3.7 / 4.1 0.16 ●━━┻━━╋━━┻━━┫
flutter/samples 14.31 14.3 / 16.4 / 17.9 0.82 ● ┣━━┻━━╋━━┻━━┫
gitbucket/gitbucket 3.28 3.1 / 3.5 / 4.0 0.17 ┣━●┻━━╋━━┻━━┫
googleapis/google-cloud-cpp 127.65 123.1 / 135.5 / 155.9 8.73 ┣━━━●━━━╋━━━┻━━━┫
graphql/express-graphql 1.06 1.0 / 1.2 / 1.4 0.09 ┣━●━━╋━━┻━┫
graphql/graphql-js 2.66 2.6 / 2.9 / 3.2 0.14 ●━┻━━╋━━┻━┫
graphql/graphql-relay-js 1.10 1.0 / 1.2 / 1.5 0.10 ┣━┻●━╋━━┻━┫
graphql/graphql-spec 1.25 1.2 / 1.4 / 1.6 0.09 ┣━●━━╋━━┻━┫
iluwatar/java-design-patterns 11.37 11.4 / 12.8 / 14.1 0.57 ● ┣━━┻━━╋━━┻━━┫
ktaranov/sqlserver-kit 6.20 5.8 / 6.5 / 7.2 0.31 ┣━━●━━╋━━┻━━┫
liriliri/licia 3.95 3.6 / 4.2 / 4.7 0.21 ┣━●┻━━╋━━┻━━┫
MartinThoma/LaTeX-examples 6.01 6.1 / 7.0 / 8.5 0.47 ●━━┻━━╋━━┻━━┫
mdx-js/mdx 1.77 1.8 / 2.0 / 2.2 0.11 ●━┻━━╋━━┻━┫
microsoft/TypeScript-Website 5.27 5.0 / 5.6 / 6.2 0.25 ┣━●┻━━╋━━┻━━┫
MicrosoftDocs/PowerShell-Docs 21.65 19.8 / 22.9 / 25.1 1.11 ┣━━●┻━━╋━━┻━━━┫
neovim/nvim-lspconfig 4.08 3.9 / 4.5 / 4.9 0.20 ┣●━┻━━╋━━┻━━┫
pagekit/pagekit 3.47 3.4 / 3.6 / 4.0 0.14 ┣━━●━━╋━━┻━━┫
php/php-src 23.89 23.1 / 26.0 / 30.2 1.37 ┣━●━┻━━╋━━┻━━━┫
plasticrake/tplink-smarthome-api 1.23 1.2 / 1.4 / 1.7 0.11 ┣●┻━━╋━━┻━┫
prettier/prettier 7.42 7.4 / 7.9 / 8.5 0.25 ●━━┻━━╋━━┻━━┫
pycontribs/jira 1.49 1.4 / 1.6 / 1.9 0.11 ┣━┻●━╋━━┻━┫
RustPython/RustPython 5.46 5.4 / 6.2 / 7.4 0.47 ┣●━┻━━╋━━┻━━┫
shoelace-style/shoelace 2.70 2.7 / 3.0 / 3.3 0.12 ●┣━┻━━╋━━┻━┫
slint-ui/slint 13.78 11.9 / 14.1 / 15.8 0.63 ┣━━┻━●╋━━┻━━┫
SoftwareBrothers/admin-bro 2.44 2.4 / 2.6 / 2.9 0.13 ┣●┻━━╋━━┻━┫
sveltejs/svelte 20.22 19.9 / 22.5 / 24.7 0.99 ●┣━━━┻━━╋━━┻━━━┫
TheAlgorithms/Python 5.94 5.4 / 5.9 / 6.7 0.26 ┣━━┻━━╋●━┻━━┫
twbs/bootstrap 1.76 1.6 / 1.8 / 2.1 0.09 ┣━┻●━╋━━┻━┫
typescript-cheatsheets/react 1.38 1.3 / 1.4 / 1.9 0.11 ┣━┻━●╋━━┻━┫
typescript-eslint/typescript-eslint 3.90 3.8 / 4.4 / 4.9 0.20 ●┣━━┻━━╋━━┻━━┫
vitest-dev/vitest 9.39 8.7 / 9.9 / 11.6 0.50 ┣━━●━━╋━━┻━━┫
w3c/aria-practices 3.23 3.2 / 3.6 / 4.0 0.18 ┣●━┻━━╋━━┻━━┫
w3c/specberus 1.85 1.8 / 2.1 / 2.6 0.13 ●━┻━━╋━━┻━┫
webdeveric/webpack-assets-manifest 1.14 1.1 / 1.3 / 1.6 0.10 ┣━●━━╋━━┻━┫
webpack/webpack 4.88 4.8 / 5.5 / 6.1 0.28 ●┣━━┻━━╋━━┻━━┫
wireapp/wire-desktop 1.25 1.2 / 1.4 / 1.7 0.10 ┣●┻━━╋━━┻━┫
wireapp/wire-webapp 9.51 9.4 / 10.6 / 12.0 0.57 ●━━┻━━╋━━┻━━┫

Note:

  • Elapsed time is in seconds.
Files per Second over Time
Repository Files Sec Fps Rel Trend Fps N
AdaDoom3/AdaDoom3 103 2.86 36.04 13.25% ▆▄▄▄▃▃▄▃▃▅▄▄▄▅▇▇▆█▇█ 53
alexiosc/megistos 583 7.13 81.76 11.82% ▅▅▅▃▂▃▅▅▄▄▅▅▅▆███▇▇█ 53
apollographql/apollo-server 253 2.49 101.62 7.63% ▆▃▅▅▅▅▄▅▅▆▅▆▆▇▇█▇███ 53
aspnetboilerplate/aspnetboilerplate 2286 9.13 250.43 8.43% ▇▆▇▆▅▆▆▆▅▆▇▆▆▆█▇██▇▇ 53
aws-amplify/docs 2874 11.53 249.36 13.27% ▅▅▆▆▅▅▅▆▆▅▆▅▆▆▇▇▇█▇█ 53
Azure/azure-rest-api-specs 2438 9.36 260.53 9.69% ▆▅▆▄▃▃▄▆▅▃▄▄▅▆▇▇▇█▇█ 53
bitjson/typescript-starter 20 0.99 20.22 10.78% ▇▅▄▂▂▂▂▂▃▄▄▄▅▆█▆▇▄█▇ 53
caddyserver/caddy 290 3.42 84.71 7.78% ▅▃▅▅▅▅▅▅▅▅▄▅▅▆▇▇███▇ 53
canada-ca/open-source-logiciel-libre 7 0.99 7.06 16.89% ▆▅▅▃▃▃▃▃▂▅▃▄▄▆▆█▇█▇█ 53
chef/chef 1196 5.19 230.32 14.69% ▆▄▅▄▄▅▅▅▄▅▅▅▅▄████▆█ 53
dart-lang/sdk 10901 56.14 194.16 11.58% ▆▆▄▆▆▆▇▆▆▆▅▆▆▆▇█████ 53
django/django 2891 14.18 203.93 7.31% ▅▅▆▅▅▅▄▄▄▄▃▄▄▅█▇███▇ 53
eslint/eslint 2062 9.52 216.48 9.79% ▆▅▅▅▅▄▄▄▅▄▆▃▇▅███▇▇█ 53
exonum/exonum 421 3.29 127.78 10.61% ▆▄▄▃▃▄▄▄▄▆▄▅▅▅█▇█▅██ 53
flutter/samples 2441 14.31 170.58 14.37% ▃▄▄▄▄▄▄▄▄▅▅▅▃▅█▇▇███ 53
gitbucket/gitbucket 413 3.28 126.10 6.46% ▆▅▅▄▄▄▄▄▂▅▅▅▅▅█▇█▇▇▇ 53
googleapis/google-cloud-cpp 21013 127.65 164.61 5.76% ▅▅▅▅▆▆▄▅▅▅▆▆▅▆██▇█▇▇ 53
graphql/express-graphql 26 1.06 24.52 9.88% ▇▄▅▂▃▃▃▃▂▅▄▅▆▇█▇█▆█▇ 53
graphql/graphql-js 368 2.66 138.14 8.51% ▆▅▅▃▃▄▄▄▄▅▅▅▆▄██▆██▇ 53
graphql/graphql-relay-js 28 1.10 25.44 7.10% ▇▅▅▃▃▂▃▃▂▄▅▅▇▇▇█▇█▅▇ 53
graphql/graphql-spec 19 1.25 15.23 7.83% ▇▅▇▄▃▃▄▄▂▅▄▆▆▆▇████▇ 53
iluwatar/java-design-patterns 1992 11.37 175.18 12.13% ▆▅▅▅▅▅▅▅▅▅▆▆▆▆▇▇▇███ 53
ktaranov/sqlserver-kit 489 6.20 78.86 4.36% ▆▅▆▅▅▅▆▅▅▆▅▅▆▆█▆▇██▆ 53
liriliri/licia 1437 3.95 364.14 7.13% ▅▂▅▂▄▃▄▄▃▄▄▄▅▅▆▆▇▆█▆ 53
MartinThoma/LaTeX-examples 1409 6.01 234.63 16.14% ▆▆▅▂▂▃▃▃▄▆▄▅▅▆██████ 53
mdx-js/mdx 141 1.77 79.60 12.85% ▆▄▄▃▃▄▃▄▄▄▅▃▇▆▇███▃█ 53
microsoft/TypeScript-Website 761 5.27 144.45 6.53% ▆▅▅▃▃▄▅▅▄▅▅▄▅▅▅▆▇▇█▇ 53
MicrosoftDocs/PowerShell-Docs 2639 21.65 121.92 5.51% ▅▄▅▄▃▅▅▅▅▅▄▆▅▅▇▇█▇▆▆ 53
neovim/nvim-lspconfig 767 4.08 188.11 9.34% ▅▅▅▄▄▅▅▃▄▅▃▄▅▄▇███▇▇ 53
pagekit/pagekit 741 3.47 213.41 4.72% ▇▇▆▄▄▄▃▄▄▆▅▅▇▆█▇▆██▇ 53
php/php-src 2265 23.89 94.79 8.74% ▆▆▆▂▅▅▅▅▅▅▆▅▅▄▆██▆▇▇ 53
plasticrake/tplink-smarthome-api 62 1.23 50.48 12.06% ▆▄▅▂▃▄▄▃▂▄▅▃▅▆███▇██ 53
prettier/prettier 2511 7.42 338.44 7.52% ▅▆▆▆▄▅▄▅▅▅▅▄▆▅▇▇█▆▇█ 53
pycontribs/jira 79 1.49 52.88 6.17% ▅▃▅▃▂▃▃▂▃▄▃▅▅▆███▆█▆ 53
RustPython/RustPython 719 5.46 131.79 14.13% ▄▄▄▂▃▃▄▂▂▅▄▄▅▆▅█▅█▇█ 53
shoelace-style/shoelace 439 2.70 162.80 9.21% ▆▆▅▄▄▃▄▄▄▅▅▆▅▆▇█▇███ 53
slint-ui/slint 2630 13.78 190.88 2.06% ▄▅▆▄▄▃▃▄▄▄▃▄▄▅▅▆█▆▆▅ 53
SoftwareBrothers/admin-bro 441 2.44 180.57 7.40% ▆▃▅▅▃▃▄▄▃▅▅▃▆▆▇██▇▇▇ 53
sveltejs/svelte 8245 20.22 407.69 11.17% ▅▇▅▅▄▅▃▅▆▅▅▅▅▅▇▇████ 53
TheAlgorithms/Python 1400 5.94 235.61 -1.49% ▇▅▄▅▃▅▅▅▄▇▅▆▆▅███▇█▆ 53
twbs/bootstrap 118 1.76 67.22 4.33% ▆▄▅▄▄▄▃▄▄▅▅▅▆▇█████▆ 53
typescript-cheatsheets/react 53 1.38 38.52 2.41% █▅▆▅▅▂▃▅▄▅▇▇▇██████▇ 53
typescript-eslint/typescript-eslint 1298 3.90 332.92 12.99% ▅▅▅▄▄▃▄▃▄▄▅▄▅▆█▇██▇█ 53
vitest-dev/vitest 2436 9.39 259.48 6.04% ▅▅▅▆▅▅▅▅▅▅▆▅▄▆▇██▆▇▆ 53
w3c/aria-practices 414 3.23 128.23 9.79% ▆▆▆▅▅▄▅▄▄▆▅▅▆▅▆███▅█ 53
w3c/specberus 197 1.85 106.58 11.55% ▇▅▆▄▄▅▄▂▄▅▆▆▆▆██████ 53
webdeveric/webpack-assets-manifest 55 1.14 48.26 9.39% ▆▅▅▄▂▄▄▃▄▄▅▅▆▇▆█▇▇██ 53
webpack/webpack 1139 4.88 233.61 13.06% ▄▅▅▄▄▄▅▃▃▅▄▅▅▅▇▅██▇█ 53
wireapp/wire-desktop 44 1.25 35.23 12.59% ▆▅▅▃▃▂▃▄▃▄▄▄▇▆▇▇█▆██ 53
wireapp/wire-webapp 1811 9.51 190.34 11.11% ▆▇▄▆▄▅▅▅▅▅▆▆▅▆▇▇▇███ 53
Data Throughput
Repository Files Sec Kps Rel Trend Kps N
AdaDoom3/AdaDoom3 103 2.86 765.91 13.25% ▆▄▄▄▃▃▄▃▃▅▄▄▄▅▇▇▆█▇█ 53
alexiosc/megistos 583 7.13 642.42 11.82% ▅▅▅▃▂▃▅▅▄▄▅▅▅▆███▇▇█ 53
apollographql/apollo-server 253 2.49 831.45 7.63% ▆▃▅▅▅▅▄▅▅▆▅▆▆▇▇█▇███ 53
aspnetboilerplate/aspnetboilerplate 2286 9.13 609.30 8.43% ▇▆▇▆▅▆▆▆▅▆▇▆▆▆█▇██▇▇ 53
aws-amplify/docs 2874 11.53 871.54 13.28% ▅▅▆▆▅▅▅▆▆▅▆▅▆▆▇▇▇█▇█ 53
Azure/azure-rest-api-specs 2438 9.36 688.85 9.69% ▆▅▆▄▃▃▄▆▅▃▄▄▅▆▇▇▇█▇█ 53
bitjson/typescript-starter 20 0.99 80.87 10.78% ▇▅▄▂▂▂▂▂▃▄▄▄▅▆█▆▇▄█▇ 53
caddyserver/caddy 290 3.42 743.70 8.08% ▅▃▅▅▅▅▅▅▅▅▄▅▅▆▇▇███▇ 53
canada-ca/open-source-logiciel-libre 7 0.99 58.49 16.89% ▆▅▅▃▃▃▃▃▂▅▃▄▄▆▆█▇█▇█ 53
chef/chef 1196 5.19 1069.35 14.59% ▆▄▅▄▄▅▅▅▄▅▅▅▅▄████▆█ 53
dart-lang/sdk 10901 56.14 1316.35 11.58% ▆▆▄▆▆▆▇▆▆▆▅▆▆▆▇█████ 53
django/django 2891 14.18 1284.73 7.38% ▅▅▆▅▅▅▄▄▄▄▃▄▄▅█▇███▇ 53
eslint/eslint 2062 9.52 1494.49 9.97% ▆▅▅▅▅▄▄▄▅▄▆▃▇▅███▇▇█ 53
exonum/exonum 421 3.29 1222.22 10.61% ▆▄▄▃▃▄▄▄▄▆▄▅▅▅█▇█▅██ 53
flutter/samples 2441 14.31 1498.75 14.24% ▃▄▄▄▄▄▄▄▄▅▅▅▃▅█▇▇███ 53
gitbucket/gitbucket 413 3.28 573.70 6.47% ▆▅▅▄▄▄▄▄▂▅▅▅▅▅█▇█▇▇▇ 53
googleapis/google-cloud-cpp 21013 127.65 1339.84 5.73% ▅▅▅▅▆▆▄▅▅▅▆▆▅▆██▇█▇▇ 53
graphql/express-graphql 26 1.06 112.23 9.88% ▇▄▅▂▃▃▃▃▂▅▄▅▆▇█▇█▆█▇ 53
graphql/graphql-js 368 2.66 801.79 8.51% ▆▅▅▃▃▄▄▄▄▅▅▅▆▄██▆██▇ 53
graphql/graphql-relay-js 28 1.10 99.95 7.10% ▇▅▅▃▃▂▃▃▂▄▅▅▇▇▇█▇█▅▇ 53
graphql/graphql-spec 19 1.25 508.24 7.83% ▇▅▇▄▃▃▄▄▂▅▄▆▆▆▇████▇ 53
iluwatar/java-design-patterns 1992 11.37 541.46 12.13% ▆▅▅▅▅▅▅▅▅▅▆▆▆▆▇▇▇███ 53
ktaranov/sqlserver-kit 489 6.20 1194.18 4.36% ▆▅▆▅▅▅▆▅▅▆▅▅▆▆█▆▇██▆ 53
liriliri/licia 1437 3.95 433.83 7.13% ▅▂▅▂▄▃▄▄▃▄▄▄▅▅▆▆▇▆█▆ 53
MartinThoma/LaTeX-examples 1409 6.01 484.58 16.14% ▆▆▅▂▂▃▃▃▄▆▄▅▅▆██████ 53
mdx-js/mdx 141 1.77 369.79 12.85% ▆▄▄▃▃▄▃▄▄▄▅▃▇▆▇███▃█ 53
microsoft/TypeScript-Website 761 5.27 999.17 6.53% ▆▅▅▃▃▄▅▅▄▅▅▄▅▅▅▆▇▇█▇ 53
MicrosoftDocs/PowerShell-Docs 2639 21.65 1272.00 5.53% ▅▄▅▄▃▅▅▅▅▅▄▆▅▅▇▇█▇▆▆ 53
neovim/nvim-lspconfig 767 4.08 350.46 9.27% ▅▅▅▄▄▅▅▃▄▅▃▄▅▄▇███▇▇ 53
pagekit/pagekit 741 3.47 444.97 4.72% ▇▇▆▄▄▄▃▄▄▆▅▅▇▆█▇▆██▇ 53
php/php-src 2265 23.89 1660.11 8.74% ▆▆▆▂▅▅▅▅▅▅▆▅▅▄▆██▆▇▇ 53
plasticrake/tplink-smarthome-api 62 1.23 272.78 12.06% ▆▄▅▂▃▄▄▃▂▄▅▃▅▆███▇██ 53
prettier/prettier 2511 7.42 483.06 7.50% ▅▆▆▆▄▅▄▅▅▅▅▄▆▅▇▇█▆▇█ 53
pycontribs/jira 79 1.49 374.88 6.17% ▅▃▅▃▂▃▃▂▃▄▃▅▅▆███▆█▆ 53
RustPython/RustPython 719 5.46 1536.80 18.48% ▄▃▄▂▃▃▄▂▂▅▄▄▅▆▅█▅█▇█ 53
shoelace-style/shoelace 439 2.70 786.57 9.21% ▆▆▅▄▄▃▄▄▄▅▅▆▅▆▇█▇███ 53
slint-ui/slint 2630 13.78 1178.57 1.98% ▄▅▆▄▄▃▃▄▄▄▃▄▄▅▅▆█▆▆▅ 53
SoftwareBrothers/admin-bro 441 2.44 398.00 7.40% ▆▃▅▅▃▃▄▄▃▅▅▃▆▆▇██▇▇▇ 53
sveltejs/svelte 8245 20.22 273.59 11.13% ▅▇▅▅▄▅▃▅▆▅▅▅▅▅▇▇████ 53
TheAlgorithms/Python 1400 5.94 599.97 -1.45% ▇▅▄▅▃▅▅▅▄▇▅▆▆▅███▇█▆ 53
twbs/bootstrap 118 1.76 551.97 4.33% ▆▄▅▄▄▄▃▄▄▅▅▅▆▇█████▆ 53
typescript-cheatsheets/react 53 1.38 284.90 2.41% █▅▆▅▅▂▃▅▄▅▇▇▇██████▇ 53
typescript-eslint/typescript-eslint 1298 3.90 1723.10 13.02% ▅▅▅▄▄▃▄▃▄▄▅▄▅▆█▇██▇█ 53
vitest-dev/vitest 2436 9.39 564.01 5.91% ▅▅▅▆▅▅▅▅▅▅▆▅▄▆▇██▆▇▆ 53
w3c/aria-practices 414 3.23 1195.61 9.79% ▆▆▆▅▅▄▅▄▄▆▅▅▆▅▆███▅█ 53
w3c/specberus 197 1.85 337.06 11.55% ▇▅▆▄▄▅▄▂▄▅▆▆▆▆██████ 53
webdeveric/webpack-assets-manifest 55 1.14 110.56 9.39% ▆▅▅▄▂▄▄▃▄▄▅▅▆▇▆█▇▇██ 53
webpack/webpack 1139 4.88 1079.22 13.17% ▅▅▅▄▄▄▅▃▃▅▄▅▅▅▇▅██▇█ 53
wireapp/wire-desktop 44 1.25 156.93 12.72% ▆▅▅▃▃▂▃▄▃▄▄▄▇▆▇▇█▆██ 53
wireapp/wire-webapp 1811 9.51 715.94 11.66% ▆▇▄▆▄▅▅▅▅▅▆▆▅▆▇▇▇███ 53

"license": "ISC",
"devDependencies": {
"@cspell/eslint-plugin": "workspace:^",
"eslint": "^8.50.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I didn't realize that eslint 8 was still sitting around. I'll fix it in another PR.

},
}),
readFix('issue-8261/sample.js', {
cspell: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The report settings seems to be missing.

Since we are testing the two settings, report and cspell.unknownWords, we should have them in the test.

@Jason3S Jason3S changed the title fix: unknown word report config change #8261 fix: support unknown word reporting options in eslint-plugin Jan 10, 2026
@Jason3S Jason3S merged commit 75d8f58 into main Jan 10, 2026
82 checks passed
@Jason3S Jason3S deleted the refactor/#8261/support-typos-only-reporting branch January 10, 2026 08:32
@Jason3S Jason3S requested a review from Copilot January 12, 2026 07:17
@Jason3S Jason3S added feature and removed fix labels Jan 12, 2026
@Jason3S Jason3S changed the title fix: support unknown word reporting options in eslint-plugin feat: ESLint-plugin -- Add report option to be able to control the reporting level (matching the CLI): "all", "simple", "typos", "flagged". Jan 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for unknown word reporting options to the cspell ESLint plugin, allowing users to control which types of spelling issues are reported (all unknown words, simple typos, common typos, or only flagged words).

Changes:

  • Added a new report option to the ESLint plugin configuration with values: 'all', 'simple', 'typos', and 'flagged'
  • Implemented mapping from the report option to CSpell's unknownWords setting
  • Added unit tests for the new report filtering functionality

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/cspell-eslint-plugin/src/common/options.cts Added report option type definition and included unknownWords in CSpellOptions
packages/cspell-eslint-plugin/src/spellCheckAST/spellCheck.mts Implemented mapping from report option to unknownWords CSpell setting
packages/cspell-eslint-plugin/src/spellCheckAST/spellCheck.test.mts Added unit tests for different report types and type-safety helper
packages/cspell-eslint-plugin/src/generated/schema.cts Added schema definitions for report and unknownWords options
packages/cspell-eslint-plugin/src/test/index.test.mts Added integration test fixture for issue-8261
packages/cspell-eslint-plugin/fixtures/issue-8261/* Added test fixture files including sample code, configuration, and custom dictionary
packages/cspell-eslint-plugin/cspell.config.yaml Added flaggedWords for testing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature task A task to be done.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cspell ESLint plugin: support typos-only reporting (CLI --report typos / unknownWords report-common-typos)

3 participants